<?php
/**
 * CreateUser:zlh
 * CreateTime:2022/1/15
 * Remark:该类为员工新增参数验证
 */
namespace App\Http\Requests\Company;

use App\Http\Requests\BaseRequests;

class AddCompanyPost extends BaseRequests
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'company_name' => "required",
            'company_code' => "required",
        ];
    }

    public function messages()
    {
        return [
            'company_name.required' => "公司名称不能为空",
            'company_code.required' => "公司编号不能为空"
        ];
    }


}
